﻿CREATE ENDPOINT [MiddleMan]
    AUTHORIZATION [JEREMIAHPES5650\Administrator] 
    STATE = STARTED
    AS HTTP (
            PATH = N'/ws',
            AUTHENTICATION = (INTEGRATED, KERBEROS, NTLM),
            PORTS = (CLEAR),
            SITE = 'localhost',
            CLEAR_PORT = 8081,
            SSL_PORT = 443
            )
    FOR SOAP (
             WEBMETHOD N'AddNewPartsInventory'(NAME = N'[MiddleMan].[Production].[AddNewPartsInventory]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'AverageSalesReport'(NAME = N'[MiddleMan].[Sales].[AverageSalesReport]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'CurrentPartsInventory'(NAME = N'[MiddleMan].[Production].[CurrentPartsInventory]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'CurrentProductsInventory'(NAME = N'[MiddleMan].[Production].[CurrentProductsInventory]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'PartsBelowSafteyStockLevel'(NAME = N'[MiddleMan].[Production].[PartsBelowSafetyStockLevel]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'ProductsBelowSafteyStockLoevel'(NAME = N'[MiddleMan].[Production].[ProductsBelowSafetyStockLevel]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'UpdatePartsInventory'(NAME = N'[MiddleMan].[Production].[UpdatePartsInventory]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
             WEBMETHOD N'UpdateProductStockLevel'(NAME = N'[MiddleMan].[Production].[UpdateProductStockLevel]', SCHEMA = STANDARD, FORMAT = ALL_RESULTS),
            WSDL = DEFAULT,
            LOGIN_TYPE = WINDOWS,
            SESSION_TIMEOUT = 60,
            DATABASE = N'MiddleMan',
            SCHEMA = STANDARD,
            CHARACTER_SET = XML,
            HEADER_LIMIT = 4096
             );

